package encaps.resources;

import java.util.ResourceBundle;

public final class Labels {
    //Метки, которые пишутся перед значением поля,
    //например: "Name: James Bond". Name - метка.

    public static final String DATE_FORMAT = "dateFormat";
    public static final String FOOTER_STATEMENT = "footerStatement";
    public static final String WELCOME = "welcome";
    public static final String USER = "user";
    public static final String ID = "id";
    public static final String IMAGE = "image";
    public static final String INFO = "info";
    public static final String EMAIL = "email";
    public static final String CONTACTS = "contacts";
    public static final String LOGIN = "login";
    public static final String PASSWORD = "password";
    public static final String REPEAT_PASSWORD = "reenterPassword";
    public static final String OLD_PASSWORD = "oldPassword";
    public static final String NEW_PASSWORD = "newPassword";
    public static final String EDIT_PROFILE_BUTTON = "editProfile";
    public static final String WRONG_OLD_PASSWORD_MESSAGE = "wrongOldPassMsg";
    public static final String ENTER_NEW_PASSWORD_MESSAGE = "enterNewPassMsg";
    public static final String ALREADY_LOGGED_MESSAGE = "alreadyLoggedMsg";
    public static final String USER_ALREADY_EXISTS = "userAlreadyExists";
    public static final String ENTER_LOGIN_MESSAGE = "enterLoginMsg";
    public static final String ENTER_PASSWORD_MESSAGE = "enterPassMsg";
    public static final String PASSWORDS_MISMATCH_MESSAGE = "passMismatchMsg";
    //Movie section
    public static final String MOVIE_TITLE = "movieTitle";
    public static final String MOVIE_DESCRIPTION = "movieDescription";
    public static final String MOVIE_LENGTH = "movieLength";
    public static final String MOVIE_COUNTRIES = "countries";
    public static final String MOVIE_RATING = "movieRating";
    public static final String MOVIE_RUSRELEASEDATE = "movieRusRelDate";
    public static final String MOVIE_WLDRELEASEDATE = "movieWorldRelDate";
    public static final String MOVIE_PICTURE = "moviePicture";
    public static final String MOVIE_STUDIO = "movieStudio";
    public static final String MOVIE_GENRES = "movieGenres";
    public static final String MOVIE_GENRE = "movieGenre";
    public static final String MOVIE_COUNTRIES_SEARCH_FIELD_MESSAGE = "countriesSearchFieldMsg";
    public static final String MOVIE_CASH = "movieCash";
    public static final String MOVIE_CASH_FROM = "movieCashFrom";
    public static final String MOVIE_CASH_TO = "movieCashTo";
    public static final String MOVIE_RATING_FROM = "movieRatingFrom";
    public static final String MOVIE_RATING_TO = "movieRatingTo";
    public static final String MOVIE_BUDGET = "movieBudget";
    public static final String MOVIE_BUDGET_FROM = "movieBudgetFrom";
    public static final String MOVIE_BUDGET_TO = "movieBudgetTo";
    public static final String MOVIE_VOTED = "movieVoted";
    public static final String MOVIE_COMMENTS = "movieComments";
    public static final String MOVIE_COMMENT_CONTENT = "movieCommentContent";
    public static final String MOVIE_COMMENT_DATE = "movieCommentDate";
    public static final String MOVIE_COMMENT_NEW = "movieCommentNew";
    public static final String MOVIE_COMMENT_NEW_BUTTON = "movieCommentNewButton";
    public static final String MOVIE_COMMENT_DELETE = "movieCommentDeleteLink";
    public static final String MOVIE_COMMENT_PERMISSION = "movieCommentPermissionMessage";
    public static final String MOVIE_RATING_DOUBLEVOTED = "movieRatingDoubleVoted";
    public static final String MOVIE_VOTE_BUTTON = "movieVoteButton";
    public static final String MOVIE_RATING_NOT_VOTED = "movieRatingNotVoted";
    public static final String MOVIE_NOT_FOUND_MESSAGE_PATTERN = "movieNotFoundMsgPattern";
    public static final String MOVIE_DELETED_MESSAGE = "movieDeletedMsg";
    public static final String MOVIE_CHANGED_MESSAGE = "movieChangedMsg";
    public static final String EMPTY_TITLE_FIELD_MESSAGE = "emptyTitleMsg";
    public static final String INVALID_NUMERIC_VALUE_MESSAGE = "invalidNumericValMsg";
    public static final String INVALID_DATE_FORMAT = "invalidDateFormat";
    public static final String CREATE_MOVIE_BUTTON = "createMovieButton";
    public static final String DELETE_MOVIE_BUTTON = "deleteMovieButton";
    //Role section
    public static final String ROLE = "role";
    public static final String ROLE_NAME = "name";
    public static final String GRANTS = "grants";
    public static final String GRANT = "grant";
    public static final String YOUR_PROFILE = "yourProfile";
    public static final String EDIT_PROFILE = "editProfile";
    public static final String GREETINGS = "greetings";
    public static final String LOGIN_BUTTON = "loginButton";
    public static final String LOGOUT_BUTTON = "logoutButton";
    public static final String REGISTER_BUTTON = "registerButton";
    public static final String SEARCH_BUTTON = "searchButton";
    public static final String REGISTRATION = "registration";
    public static final String VIEW_USER_MESSAGE_PATTERN = "viewUserMsgPattern";
    public static final String EDIT_USER = "editUser";
    public static final String DELETE_USER = "deleteUser";
    public static final String VIEW_LINK = "viewLink";
    public static final String EDIT_LINK = "editLink";
    public static final String DELETE_LINK = "deleteLink";
    public static final String APPLY = "applyButton";
    public static final String DELETE_PROFILE = "deleteProfileButton";
    public static final String ARE_YOU_SURE_MESSAGE = "areYouSureMsg";
    public static final String YES_BUTTON = "yesButton";
    public static final String NO_BUTTON = "noButton";
    public static final String YOUR_PROFILE_DELETED_MESSAGE = "yourProfileDeletedMsg";
    public static final String USER_DELETED_MESSAGE_PATTERN = "userDeletedMsgPattern";
    public static final String ADMIN_CANNOT_BE_DELETED_MESSAGE = "adminCantBeDeleterMsg";
    public static final String EDIT_USER_PROFILE_MESSAGE_PATTERN = "editUserProfileMsgPattern";
    public static final String USER_CHANGED_MESSAGE = "userChangedMsg";
    public static final String YOU_HAVE_LOGGED_OUT_MESSAGE = "youHaveLoggedOutMsg";
    public static final String PERSON_CREATED_MESSAGE = "personCreatedMsg";
    public static final String MOVIE_CREATED_MESSAGE = "movieCreatedMsg";
    //Error Messages
    public static final String WRONG_TABLE_ROW_MESSAGE = "wrongTbRowMsg";
    public static final String WRONG_TABLE_COLUMN_MESSAGE = "wrongTbColMsg";
    public static final String VALUE_MUST_BE_DECIMAL_MESSAGE = "valMustBeDecimalNumMsg";
    public static final String VALUE_MUST_BE_INTEGER_MESSAGE = "valMustBeIntNumMsg";
    public static final String AUTHORIZATION_SUCCESSFUL_MESSAGE = "authSuccessMsg";
    public static final String AUTHORIZATION_FAILED_WRONG_PASSWORD_MESSAGE = "authFailedWrongPassMsg";
    public static final String AUTHORIZATION_FAILED_NO_SUCH_USER_MESSAGE = "authFailedNoSuchUserMsg";
    public static final String AUTHORIZATION_FAILED_PASSWORD_ENCODING_ERROR_MESSAGE = "authFailedEncErrMsg";
    public static final String PROFILE_REGISTERED_SUCCESSFULLY = "profileRegSuccMsg";
    public static final String CANNOT_EXECUTE_ACTION = "cannotExecuteAction";
    public static final String RIGHT_DECISION = "rightDecision";
    public static final String SIDE_BUILDER_INSTANTATION_ERROR_MESSAGE = "sideBuilderInstErrMsg";
    public static final String USER_NOT_FOUND_MESSAGE_PATTERN = "userNotFoundMsgPattern";
    public static final String CANNOT_READ_PARAMETER_MESSAGE_PATTERN = "cannotReadParameterMsgPattern";
    public static final String CANNOT_READ_THE_FILE_MESSAGE = "cannotReadFileMsg";
    public static final String HAVE_NO_PERMISSIONS_MESSAGE = "noPermissionsMsg";
    public static final String CANNOT_WRITE_FILE_MESSAGE = "cantWriteFileMsg";
    public static final String CONVERSION_ERROR_MESSAGE = "conversionErrMsg";
    public static final String CONFIG_INIT_ERROR_MESSAGE = "configInitErrMsg";
    public static final String REQUEST_PARSER_INIT_ERROR_MESSAGE = "RPInitErrMsg";
    public static final String REQUEST_PARSER_FILE_PARSING_ERROR_MESSAGE = "RPFileParseErrMsg";
    public static final String REQUEST_PARSER_NO_SUCH_FACTORY_MESSAGE = "RPNoSuchFactoryMsg";
    public static final String REQUEST_PARSER_IO_ERROR_MESSAGE = "RPIOErrMsg";
    public static final String REQUEST_PARSER_EXCEPTION_MESSAGE = "RPErrMsg";
    public static final String ROLE_MANAGER_ININ_ERROR_MESSAGE = "RMInitErrMsg";
    public static final String DATABASE_ACCESS_ERROR_MESSAGE = "DBAccessErrMsg";
    public static final String ROLE_NOT_FOUND_MESSAGE = "roleNotFoundMsg";
    public static final String ROLE_ALREADY_EXISTS_MESSAGE = "roleExistsMsg";
    public static final String NO_DATASOURCE_FOUND_MESSAGE = "cantFindDataSourceMsg";
    public static final String CANNOT_FIND_LOCAL_HOME_OBJECT_MESSAGE = "cantFindLocalHomeObjectMsg";
    public static final String CONFIG_ERROR_MESSAGE = "configErrorMsg";
    public static final String NO_MATCHES_FOUND_MESSAGE = "noMatchesFoundMsg";
    public static final String REMOVAL_ERROR_MESSAGE = "removalErrorMsg";
    public static final String INSERT_ERROR_MESSAGE = "insertErrMsg";
    public static final String UPDATE_ERROR_MESSAGE = "updateErrMsg";
    public static final String DELETE_ERROR_MESSAGE = "deleteErrMsg";
    public static final String MOVIE_PERSON_ACTOR = "actor";
    public static final String MOVIE_PERSON_DIRECTOR = "director";
    public static final String MOVIE_PERSON_PRODUCER = "producer";
    public static final String MOVIE_PERSON_ADDBUTTON = "addPersonButton";
    public static final String MOVIE_PERSON_REMBUTTON = "remPersonButton";
    public static final String MOVIE_GENRES_ADDBUTTON = "genreAddButton";
    public static final String PAGE_HEADER = "pageHeader";
    public static final String MOVIE_SEARCH = "movieSearch";
    public static final String PERSON_SEARCH = "personSearch";
    public static final String USER_SEARCH = "userSearch";
    public static final String ADVANCED_SEARCH = "advancedSearch";
    public static final String BASIC_MOVIE_SEARCH_HEADER_PATTERN = "basicMovieSrchHeaderPattern";
    public static final String BASIC_PERSON_SEARCH_HEADER_PATTERN = "basicPersonSrchHeaderPattern";
    public static final String BASIC_USER_SEARCH_HEADER_PATTERN = "basicUserSrchHeaderPattern";
    public static final String USER_SEARCHING_HEADER = "searchUser";
    public static final String MOVIE_SEARCHING_HEADER = "searchMovie";
    public static final String PERSON_SEARCHING_HEADER = "searchPerson";
    public static final String FOUND_RESULTS_HEADER = "foundResults";
    //PersonSection
    public static final String PERSON = "person";
    public static final String PERSON_NAME = "name";
    public static final String PERSON_BIOGRAPHY = "biography";
    public static final String PERSON_PIC = "pic";
    public static final String PERSON_NOT_FOUND_MESSAGE_PATTERN = "personNotFoundMsgPattern";
    public static final String PERSON_DELETED_MESSAGE = "personDeletedMsg";
    public static final String EMPTY_NAME_FIELD_MESSAGE = "emptyNameFieldMsg";
    public static final String PERSON_CHANGED_MESSAGE = "personChangedMsg";
    public static final String VIEW_PERSON = "viewPerson";
    public static final String CREATE_PERSON = "createPerson";
    public static final String EDIT_PERSON = "editPerson";
    public static final String APPLY_PERSON_CHANGES = "applyPersonChanges";
    public static final String DELETE_PERSON = "deletePerson";
    public static final String CREATE_PERSON_BUTTON = "createPersonButton";
    public static final String EDIT_PERSON_BUTTON = "editPersonButton";
    public static final String DELETE_PERSON_BUTTON = "deletePersonButton";
    //Film Section 
    public static final String VIEW_MOVIE = "viewMovie";
    public static final String EDIT_MOVIE = "editMovie";
    public static final String CREATE_MOVIE = "createMovie";
    //Log Section
    public static final String LOG_ACTION = "action";
    public static final String USER_ID = "user_id";
    public static final String USER_NAME = "user_name";
    public static final String TIME = "time";
    public static final String ENTITY_TYPE = "entity_type";
    public static final String ENTITY_ID = "entity_id";
    public static final String ENTITY_NAME = "entity_name";
    public static final String LOGIN_LOG_ACTION = "loginLogAction";
    public static final String LOGOUT_LOG_ACTION = "logoutLogAction";
    public static final String REGISTRATION_LOG_ACTION = "registrationLogAction";
    public static final String INSERT_LOG_ACTION = "createLogAction";
    public static final String UPDATE_LOG_ACTION = "updateLogAction";
    public static final String DELETE_LOG_ACTION = "removeLogAction";
    public static final String ACTION = "action";
    private static final String LABELS_BUNDLE_NAME = "encaps.resources.Labels";
    private static ResourceBundle labels = ResourceBundle.getBundle(LABELS_BUNDLE_NAME);
    //public static ResourceBundle messages = ResourceBundle.getBundle("encaps.resources.Messages");
    public static final String VIEW_LOG = "viewLog";
    public static final String VIEW_ROLE_LIST = "viewRoleList";
    public static final String VIEW_ROLE = "viewRole";
    public static final String CREATE_ROLE = "createRole";
    public static final String EDIT_ROLE = "editRole";
    public static final String DELETE_ROLE = "deleteRole";
    public static final String SHOW_EMPTY_ROLE_PAGE = "showEmptyRolePage";
    public static final String ROLE_CHANGED = "role_changed";
    public static final String ADD_GRANT = "add_grant";
    public static final String ROLE_CREATED = "role_created";
    public static final String SYSTEM_INTERNAL_ERROR = "system_internal_error";

    public static String getLabel(String label) {
        return labels.getString(label);
    }

    private Labels() {
    }
}
